
<div id="main-content"> <!-- Main Content Section with everything -->			
	<!-- Page Head -->						
	<div class="clear"></div> <!-- End .clear -->
	
	<div class="content-box"><!-- Start Content Box -->
		
		<div class="content-box-header">
			
			<h3><?php echo $query['modify']?'修改':'新建'?>电子绘本</h3>					
			<div class="clear"></div>
			
		</div> <!-- End .content-box-header -->
		
		<div class="content-box-content">
			
			<div >
			
				<form action="<?php echo base_url()?>e_books/execute" method="post">
						<input type='hidden' name='id' value='<?php echo $query['id']?>'>
						<input type="hidden" name="isbn" value='<?php echo $query['isbn']?>' />
						<input type="hidden" name="pid" value='<?php echo $query['pid']?>' />
						<input type="hidden" name="bid" value='<?php echo $query['bid']?>' />
						<p>
							<label>绘本名称:</label>
								<input class="text-input small-input" type="text" id="small-input" name="title" value='<?php echo $query['title']?>' /> 
								<!--<span class="input-notification success png_bg">Successful message</span> <!-- Classes for input-notification: success, error, information, attention -->
						</p>
						<p>
							<label>出版社:</label>
								<?php foreach(publishers_options() as $row){
										echo $row['id']==$query['pid']?$row['publishername']:'';
									}
								?>
						</p>
						<p>
							<label>ISBN：</label>
							 <?php echo $query?$query['isbn']:''?>									
						</p>
						<p>
							<label>语言：</label>
							<select name="language">
							<?php foreach(language() as $v):?>
								<option value="<?php echo $v?>" <?php echo $query['language']==$v?'selected':'';?>><?php echo $v;?></option>
							<?php endforeach;?>
							</select>										
						</p>
						<p>
							<label>动画形式：</label>
							<select name="format">
							<?php foreach(book_format() as $v):?>
								<option value="<?php echo $v?>" <?php echo $query['format']==$v?'selected':'';?>><?php echo $v;?></option>
							<?php endforeach;?>
							</select> 										
						</p>
						<p>
							<label>文件容量（bok）</label>
							<input class="text-input small-input" type="text" id="small-input" name="bok_size" value='<?php echo $query['bok_size']?>' /> 
						</p>
						<p>
							<label>时长</label>
							<input class="text-input small-input" type="text" id="small-input" name="time" value='<?php echo $query['time']?>' /> 
						</p>
						<p>
							<label>专案编号</label>
							<input class="text-input small-input" type="text" id="small-input" name="project_numbers" value='<?php echo $query['project_numbers']?>' /> 
						</p>
						<p>
							<label>状态</label>
							<select name='status'>
							<?php foreach(ebook_status() as $k=>$v):?>
								<option value="<?php echo $k;?>" <?php echo $query['status']==$k?'selected':'';?>><?php echo $v;?></option>
							<?php endforeach;?>
							</select>
						</p>
						<p>
							<label>简介</label>
							<textarea class="text-input" wrap='virtual' name="intro" cols="20" rows="15"><?php echo $query['intro']?></textarea>
						</p>								
						<p>
							<input class="button" type="submit" value="Submit" />
							<input class="button back" type="button" value="Back" />
						</p>							
					<div class="clear"></div><!-- End .clear -->
					
				</form>						
			</div>					
		</div> <!-- End .content-box-content -->
		
	</div> <!-- End .content-box -->
	<div class="clear"></div>			
</div> <!-- End #main-content -->	
<script>
	$(function() {
		$( "#datepicker" ).datepicker({dateFormat:'yy-mm-dd'});
	});
</script>